package com.hw.paltfrom.controller.casemain;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.hw.paltfrom.service.casemain.CountryCasemainServer;
import com.hw.paltfrom.vo.CountryCasemainVo;
import com.hw.paltfrom.vo.StepInfoVO;

/**
 * 县执法监管 邢家华 2019-11-15 13:50:25
 * 
 * @author Administrator
 *
 */
@RestController
@RequestMapping(value = "/countryCasemain")
public class CountryCasemainController {

	@Autowired
	private CountryCasemainServer countryCasemainServer;

	// 查询
	@RequestMapping(value = "/query")
	public Map<String, Object> Query(CountryCasemainVo vo) {

		return countryCasemainServer.query(vo);

	}

	// 立案审核
	@RequestMapping(value = "/initiateAnAudit")
	public Map<String, Object> initiateAnAudit(@RequestBody StepInfoVO vo) {

		return countryCasemainServer.initiateAnAudit(vo);

	}

	// 放行
	@RequestMapping(value = "/release")
	public Map<String, Object> release(@RequestBody StepInfoVO vo) {

		return countryCasemainServer.release(vo);

	}

	// 完结审核
	@RequestMapping(value = "/auditEnd")
	public Map<String, Object> auditEnd(@RequestBody StepInfoVO vo) {

		return countryCasemainServer.auditEnd(vo);

	}

	// 详情
	@RequestMapping(value = "/queryDetails")
	public Map<String, Object> queryDetails(CountryCasemainVo vo) {

		return countryCasemainServer.queryDetails(vo.getfCaseid());
	}

	// 详情2*
	@RequestMapping(value = "/queryDetail")
	public Map<String, Object> queryDetail(CountryCasemainVo vo) {

		return countryCasemainServer.queryDetail(vo.getfCaseid());
	}
}
